//
//  JXLocalPushManager.h
//

#import <Foundation/Foundation.h>

@class JXMessage;

typedef NS_ENUM(NSInteger, JXLocalPushType) {
    kLocalPushTypeMessage = 1001,
    kLocalPushTypeOther
};

@interface JXLocalPushManager : NSObject

@property(nonatomic, assign) NSInteger indexPath;

+ (JXLocalPushManager *)sharedInstance;

//注册本地推送
- (void)registerLocalNotification:(UIApplication *)application;

//接收到本地通知的回调
- (void)didReceiveLocalNotification:(UILocalNotification *)notification;

//重置app图标显示数字
- (void)resetApplicationIconBadgeNumber:(UIApplication *)application;

//监听通知
- (void)scheduleLocalNotificationWithMessage:(JXMessage *)message;

//监听通知
- (void)scheduleLocalNotificationWithSession:(id)session;

@end
